package impl

import (
	"go_code/map-collection-standalone/Mapper"
	"go_code/map-collection-standalone/model/Entity"
)

type CommentServiceImpl struct {
	commentMapper Mapper.CommentMapper
}

func (this *CommentServiceImpl) SelectById(id int64) (result Entity.Comment, err error) {
	return this.commentMapper.SelectById(id)
}

func (this *CommentServiceImpl) DeleteById(id int64) (err error) {
	return this.commentMapper.DeleteById(id)
}
func (this *CommentServiceImpl) Insert(comment *Entity.Comment) (err error) {
	return this.commentMapper.Insert(comment)
}

func (this *CommentServiceImpl) Update(comment *Entity.Comment) (err error) {
	return this.commentMapper.Update(comment)
}
